﻿using UnityEngine;
using UnityEngine.UI;

namespace Assets.Scripts.UI.Buttons
{
    public class ButtonColor:MonoBehaviour
    {
        public Color NormalColor;
        public Color PressedColor;

        public void SetNormalColor()
        {
            transform.GetChild(0).GetComponent<Text>().color = NormalColor;
        }

        public void SetPressedColor()
        {
            transform.GetChild(0).GetComponent<Text>().color = PressedColor;
        }
    }
}